<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>宿舍后台管理系统</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/X-admin/css/font.css">
	<link rel="stylesheet" href="/X-admin/css/xadmin.css">
    <link rel="stylesheet" href="https://cdn.bootcss.com/Swiper/3.4.2/css/swiper.min.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://cdn.bootcss.com/Swiper/3.4.2/js/swiper.jquery.min.js"></script>
    <script src="/X-admin/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/X-admin/js/xadmin.js"></script>

</head>
<body>
    <!-- 顶部开始 -->
    <div class="container">
        <div class="logo"><a href="./index.html">后台管理系统</a></div>
        <div class="open-nav"><i class="iconfont">&#xe699;</i></div>
        <ul class="layui-nav right" lay-filter="">
          <li class="layui-nav-item">
            <a href="javascript:;">admin</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
              <dd><a href="">个人信息</a></dd>
              <dd><a href="change_password">修改密码</a></dd>
              <dd><a href="logout">退出</a></dd>
            </dl>
          </li>
          <li class="layui-nav-item"><a href="/">前台首页</a></li>
        </ul>
    </div>
    <!-- 顶部结束 -->
    <!-- 中部开始 -->
    <div class="wrapper">
        <!-- 左侧菜单开始 -->
       {include file="public/normal_administrator_menu" /}
        <!-- 左侧菜单结束 -->
        <!-- 右侧主体开始 -->
        <div class="page-content">
          <div class="content">
            <!-- 右侧内容框架，更改从这里开始 -->
            <!--  
            <xblock>
            	<button class="layui-btn" onclick="dorm_add('添加学生信息','students_add.html','600','500')"><i class="layui-icon">&#xe608;</i>添加</button>
            </xblock>
            -->
            <table class="layui-table">
                <thead>
                    <tr>
                        <th>
                        <!--      <input type="checkbox" name="" value=""> -->
                        </th>
                        <th>
                            学号
                        </th>
                        <th>
                            姓名
                        </th>
                        <th>
                            宿舍号
                        </th>
                    </tr>
                </thead>
                <tbody>
                	{volist name="lists" id="v0"}
                    <tr>
                    	<td>
                            <input type="checkbox" value="1" name="">
                        </td>
                        <td>{$v0.uid}</td>
                        <td>{$v0.username}</td>
  						<td>{$v0.dorm_id}</td>    
                        <!--  
                        <td class="td-manage">
                            <a title="修改" href="javascript:;" onclick="dorm_edit('修改宿舍','dorm_edit.html','4','','510')"
                            class="ml-5" style="text-decoration:none">
                                <i class="layui-icon">&#xe642;</i>
                            </a>
                            <a title="删除" href="javascript:;" onclick="dorm_del(this,'1')" 
                            style="text-decoration:none">
                                <i class="layui-icon">&#xe640;</i>
                            </a>
                        </td>
                        -->
                    </tr>
                	{/volist}
                </tbody>
            </table>
            <!-- 右侧内容框架，更改从这里结束 -->
          </div>
        </div>
        <!-- 右侧主体结束 -->
    </div>
    <!-- 中部结束 -->
    <!-- 底部开始 -->
    <div class="footer">
        <div class="copyright">Copyright ©2017 x-admin v2.3 All Rights Reserved. 本后台系统由X前端框架提供前端技术支持</div>  
    </div>
    <!-- 底部结束 -->
    <!-- 背景切换开始 -->
	<div class="bg-changer">
        <div class="swiper-container changer-list">
            <div class="swiper-wrapper">
                <div class="swiper-slide"><img class="item" src="../../X-admin/images/a.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="../../X-admin/images/b.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="../../X-admin/images/c.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="../../X-admin/images/d.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="../../X-admin/images/e.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="../../X-admin/images/f.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="../../X-admin/images/g.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="../../X-admin/images/h.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="../../X-admin/images/i.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="../../X-admin/images/j.jpg" alt=""></div>
                <div class="swiper-slide"><img class="item" src="../../X-admin/images/k.jpg" alt=""></div>
                <div class="swiper-slide"><span class="reset">初始化</span></div>
            </div>
        </div>
        <div class="bg-out"></div>
        <div id="changer-set"><i class="iconfont">&#xe696;</i></div>   
    </div>
    <!-- 背景切换结束 -->
    <script>

        //批量删除提交
         function delAll () {
            layer.confirm('确认要删除吗？',function(index){
                //捉到所有被选中的，发异步进行删除
                
                layer.msg('删除成功', {icon: 1});
            });
         }
         /*用户-添加*/
        function dorm_add(title,url,w,h){
            x_admin_show(title,url,w,h);
        }
        /*用户-查看*/
        function dorm_show(title,url,id,w,h){
            x_admin_show(title,url,w,h);
        }
        // 用户-编辑
        function dorm_edit (title,url,id,w,h) {
            x_admin_show(title,url,w,h); 
        }
        /*用户-删除*/
        function dorm_del(obj,id){
            layer.confirm('确认要删除吗？',function(index){
                //发异步删除数据
                $(obj).parents("tr").remove();
                layer.msg('已删除!',{icon:1,time:1000});
            });
        }
        </script>
</body>
</html>